import request from "@/utils/request";

export function getActivityList(query) {
  return request({
    url: "/bpm/activity/list",
    method: "get",
    params: query,
  });
}

// 查询下钟提醒
export function getClockdown(query) {
  return request({
    url: "/order/clock/down",
    method: "get",
    params: query,
  });
}

// 获得门店活动分页
export function getActivityPage(query) {
  return request({
    url: "/store/activity/page",
    method: "get",
    params: query,
  });
}

// 创建门店活动
export function CreateActivity(data) {
  return request({
    url: "/store/activity/create",
    method: "post",
    data: data,
  });
}

// 更新门店活动
export function UpdateActivity(data) {
  return request({
    url: "/store/activity/update",
    method: "put",
    data: data,
  });
}

// 获得门店活动
export function getActivity(query) {
  return request({
    url: "/store/activity/get",
    method: "get",
    params: query,
  });
}

// 删除门店活动
export function DeleteActivity(query) {
  return request({
    url: "/store/activity/delete",
    method: "get",
    params: query,
  });
}

// 获得所有项目
export function getAllItem(query) {
  return request({
    url: "/store/item/all",
    method: "get",
    params: query,
  });
}

// 查询充值规则下拉框
export function getRechargeAll(query) {
  return request({
    url: "/store/conf/all/recharge/select",
    method: "get",
    params: query,
  });
}